package com.leyou.search.service;

import com.leyou.common.vo.PageResult;
import com.leyou.search.dto.GoodsDTO;
import com.leyou.search.dto.SearchRequest;

import java.util.List;
import java.util.Map;

public interface SearchService {


    /**
     * 乐优的基本搜索
     * @param request
     * @return
     */
    PageResult<GoodsDTO> search(SearchRequest request);

    /**
     * 聚合的实现
     * @param request
     * @return
     */
    Map<String,List<?>> queryBrandByIds(SearchRequest request);

}
